<?php 
/* SVN FILE: $Id$ */
/* PlanillaEvento Test cases generated on: 2009-12-06 01:12:58 : 1260077338*/
App::import('Model', 'PlanillaEvento');

class PlanillaEventoTestCase extends CakeTestCase {
	var $PlanillaEvento = null;
	var $fixtures = array('app.planilla_evento', 'app.agenda', 'app.jornada');

	function startTest() {
		$this->PlanillaEvento =& ClassRegistry::init('PlanillaEvento');
	}

	function testPlanillaEventoInstance() {
		$this->assertTrue(is_a($this->PlanillaEvento, 'PlanillaEvento'));
	}

	function testPlanillaEventoFind() {
		$this->PlanillaEvento->recursive = -1;
		$results = $this->PlanillaEvento->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('PlanillaEvento' => array(
			'id'  => 1,
			'agenda_id'  => 1,
			'jornada_id'  => 1,
			'fecha_atencion'  => 'Lorem ipsum ',
			'estado'  => 'Lorem ipsum dolor sit ame',
			'fecha_modificacion'  => 'Lorem ipsum ',
			'usuario'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>